package ita.class1.group2.supermarket.administrator.service;

import ita.class1.group2.supermarket.administrator.dao.IdentityDaoImpl;
import ita.class1.group2.supermarket.administrator.pojo.Identity;
import ita.class1.group2.supermarket.common.annotation.Autowired;
import ita.class1.group2.supermarket.common.annotation.Component;


@Component
public class IdentityService {
    @Autowired
    IdentityDaoImpl identityDao;

    public Identity getIdentity(String id){
        return identityDao.find(id);
    }

    public void saveIdentity(Identity identity){
        identityDao.save(identity);
    }

}
